class Animal {
    private String name;
    private int age;
    public final String Color = "黑色";

    public String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }

    void shout() {
        System.out.println("动物发出叫声");
    }

    void Print() {
        System.out.println("ID:" + name +
                ",年龄:" + age +
                ",颜色:" + Color);
    }
}


